<div ng-cloak>

  <div uib-navbar profile="profile"></div>

  <div class="framework-main">
    <div uib-sidebar profile="profile" class="sidebar-full" is-collapse="profitview.isCollapse" groups="profitview.sidebarGroups" item-selected="profitview.sidebarSelected"></div>

    <div class="framework-body">
      <uib-breadcrumb class="breadcrumb-wrapper" breads="profitview.breads"></uib-breadcrumb>

      <div ng-if="type === 'create' && !loading">
        <div class="tools">
          <div class="btn-group" role="group" aria-label="">
            <a href="{{redirect_url}}" class="btn btn-default btn-info" uib-tooltip="返回" tooltip-append-to-body="true" tooltip-placement="top" ><i class="fa fa-fw fa-chevron-left"></i><span class="hidden-xs"> 返回</span></a>
          </div>
        </div>

        <div class="row mt-10">
          <div class="col-md-12">
            <div class="panel panel-default panel-csc">
              <div class="panel-heading">
                <div class="panel-title">代理商分润信息</div>
              </div>
              <div class="panel-body">
                <form name="form" class="form form-horizontal" ng-submit="createSubmit(form.$valid)" novalidate>
                  <div class="row">
                    <div class="col-sm-12">
                      <div class="form-group">
                        <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司名称:</label>
                        <div class="col-sm-10">
                          <p class="form-control-static">{{info.name}}</p>
                        </div>
                      </div>
                    </div>
                  </div>

                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>渠道码:</label>
                        <div class="col-sm-6">
                          <input type="text" ng-model="mform.code" class="form-control" placeholder="渠道码">
                        </div>
                      </div>
                    </div>
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>快捷支付分润比:</label>
                        <div class="col-sm-6">
                          <div class="input-group input-group-info">
                            <input type="text" ng-model="mform.profits.pct_quick" name="pct_quick" class="form-control" placeholder="请输入分润比例" required ng-pattern="/^0(\.(([1-5]{1}\d?)|(0\d?)|(60?)))?$/">
                            <span class="input-group-addon">%</span>
                          </div>
                          <div class="error-messages" ng-messages="form.pct_quick.$error">
                            <small class="error" ng-message="required">快捷支付分润比（*必填）</small>
                            <small class="error" ng-message="pattern">分润比例在0.00%-0.60%之间</small>
                          </div>
                        </div>
                      </div>
                    </div>
                    <!--<div class="col-sm-4">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>会员充值分润比:</label>
                        <div class="col-sm-6">
                          <div class="input-group input-group-info">
                            <input type="text" ng-model="mform.profits.pct_charge" name="pct_charge" class="form-control" placeholder="比例" required ng-pattern="/^\d+\.*\d{0,2}$/">
                            <span class="input-group-addon">%</span>
                          </div>
                          <div class="error-messages" ng-messages="form.pct_charge.$error">
                            <small class="error" ng-message="required">会员充值分润比（*必填）</small>
                            <small class="error" ng-message="pattern">分润比必须为2位小数</small>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="col-sm-4">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>水吧零食分润比:</label>
                        <div class="col-sm-6">
                          <div class="input-group input-group-info">
                            <input type="text" ng-model="mform.profits.pct_consume" name="pct_charge" class="form-control" placeholder="比例" required ng-pattern="/^\d+\.*\d{0,2}$/">
                            <span class="input-group-addon">%</span>
                          </div>
                          <div class="error-messages" ng-messages="form.pct_consume.$error">
                            <small class="error" ng-message="required">水吧零食分润比（*必填）</small>
                            <small class="error" ng-message="pattern">分润比必须为2位小数</small>
                          </div>
                        </div>
                      </div>
                    </div>-->
                  </div>

                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                      <div class="btn-group" role="group" aria-label="">
                        <button class="btn btn-default btn-success" ng-disabled="form.$invalid"><i class="fa fa-fw fa-save"></i> 保存设置</button>
                      </div>
                      <div class="btn-group" role="group" aria-label="">
                        <a href="{{redirect_url}}" class="btn btn-default btn-danger"><i class="fa fa-fw fa-mail-forward"></i> 暂不设置</a>
                      </div>
                    </div>
                  </div>
                </form>
              </div>
            </div>
          </div>
          <div class="col-md-12">
            <div class="panel panel-default panel-csc">
              <div class="panel-heading">
                <div class="panel-title">代理商信息</div>
              </div>
              <div class="panel-body">
                <div class="form form-horizontal">
                  <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司名称:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.name}}</p>
                    </div>
                  </div>
                  <div class="form-group form-select-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司地址:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.area && profitview.getCityString(info.area) || '未填写'}}</p>
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                      <p class="form-control-static">{{info.address || '未填写'}}</p>
                    </div>
                  </div>

                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>法定代表:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.legal || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>手机号:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.cellphone || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label control-label-double"><span class="span-danger">*</span>法人代表<span class="visible-sm-inline"> <br/></span>身份证照片:</label>
                        <div class="col-sm-8">
                          <div class="image-group">
                            <div class="input-image input-image-add" ng-repeat="item in info.pcfile" ng-class="{true: 'has-caption'}[!!item.caption]">
                              <div class="image-wrapper">
                                <div class="image-thumbnail" ng-hide="!item.file">
                                  <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.pcfile', item.file)">
                                </div>
                              </div>
                              <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="col-sm-6" ng-if="!info.is_same">
                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>实际控制人:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.real_name || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>手机号:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.real_cellphone || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label control-label-double"><span class="span-danger">*</span>实际控制人<span class="visible-sm-inline"> <br/></span>身份证照片:</label>
                        <div class="col-sm-8">
                          <div class="image-group">
                            <div class="input-image input-image-add" ng-repeat="item in info.rpcfile" ng-class="{true: 'has-caption'}[!!item.caption]">
                              <div class="image-wrapper">
                                <div class="image-thumbnail" ng-hide="!item.file">
                                  <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.rpcfile', item.file)">
                                </div>
                              </div>
                              <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
<!--
                  <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>业务区域:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.business_area && profitview.getCityString(info.business_area) || '未填写'}}</p>
                    </div>
                  </div>-->

                  <div class="form-group">
                    <label class="col-sm-2 control-label control-label-double"><span class="span-danger">*</span>营业执照正本<span class="visible-sm-inline"> <br/></span>照片/扫描件:</label>
                    <div class="col-sm-10">
                      <div class="image-group">
                        <div class="image-group">
                          <div class="input-image" ng-repeat="item in info.blfile" ng-class="{true: 'input-image-add'}[!item.file]">
                            <div class="image-wrapper">
                              <div class="image-thumbnail" ng-hide="!item.file">
                                <img class="viewer-image" ng-src="{{item.file.serverData.url  || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.blfile', item.file)">
                              </div>
                            </div>
                            <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label control-label-double"><span class="span-danger">*</span>网吧钉钉代理<span class="visible-sm-inline"> <br/></span>协议照片/扫描件:</label>
                    <div class="col-sm-10">
                      <div class="image-group">
                        <div class="input-image input-image-add" ng-repeat="item in info.affile" ng-class="{true: 'has-caption'}[!!item.caption]">
                          <div class="image-wrapper">
                            <div class="image-thumbnail" ng-hide="!item.file">
                              <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.affile', item.file)">
                            </div>
                          </div>
                          <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div ng-if="type === 'view' && !loading">
        <div class="tools">
          <div class="btn-group" role="group" aria-label="">
            <a href="{{redirect_url}}" class="btn btn-default btn-info" uib-tooltip="返回" tooltip-append-to-body="true" tooltip-placement="top" ><i class="fa fa-fw fa-chevron-left"></i><span class="hidden-xs"> 返回</span></a>
          </div>
          <div ng-if="cfg.hasAuth(profile, cfg.api.profit.save.url) && !(info.profitsSet && info.profitsSet.length) && (cfg.hasRoleId(profile.roles,'1') || cfg.hasRoleId(profile.roles,'8'))" class="btn-group" role="group" aria-label="">
            <a ng-click="goview('profitview', 'create', id)" class="btn btn-default btn-info" uib-tooltip="设置" tooltip-append-to-body="true" tooltip-placement="top" ><i class="fa fa-fw fa-cog"></i><span class="hidden-xs"> 设置</span></a>
          </div>
          <div ng-if="cfg.hasAuth(profile, cfg.api.profit.update.url) && (info.profitsSet && info.profitsSet.length) && (cfg.hasRoleId(profile.roles,'1') || cfg.hasRoleId(profile.roles,'8'))" class="btn-group" role="group" aria-label="">
            <a ng-click="goview('profitview', 'edit', id)" class="btn btn-default btn-warning" uib-tooltip="编辑" tooltip-append-to-body="true" tooltip-placement="top" ><i class="fa fa-fw fa-edit"></i><span class="hidden-xs"> 编辑</span></a>
          </div>
        </div>

        <div class="row mt-10">
          <div class="col-md-12">
            <div class="panel panel-default panel-csc">
              <div class="panel-heading">
                <div class="panel-title">代理商分润信息</div>
              </div>
              <div class="panel-body">
                <div class="form form-horizontal">
                  <div class="row">
                    <div class="col-sm-12">
                      <div class="form-group">
                        <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司名称:</label>
                        <div class="col-sm-10">
                          <p class="form-control-static">{{info.name}}</p>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>渠道码:</label>
                        <div class="col-sm-6">
                          <p class="form-control-static">{{mform.code}}</p>
                        </div>
                      </div>
                    </div>
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>快捷支付分润比:</label>
                        <div class="col-sm-6">
                          <p class="form-control-static">{{(mform.profits.pct_quick !== undefined && mform.profits.pct_quick !== null) ? (mform.profits.pct_quick+ '%') : '待设置'}}</p>
                        </div>
                      </div>
                    </div>
                    <!--<div class="col-sm-4">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>会员充值分润比:</label>
                        <div class="col-sm-6">
                          <p class="form-control-static">{{(mform.profits.pct_charge !== undefined && mform.profits.pct_charge !== null) ? (mform.profits.pct_charge + '%') : '待设置'}}</p>
                        </div>
                      </div>
                    </div>
                    <div class="col-sm-4">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>水吧零食分润比:</label>
                        <div class="col-sm-6">
                          <p class="form-control-static">{{(mform.profits.pct_consume !== undefined && mform.profits.pct_consume !== null) ? (mform.profits.pct_consume + '%') : '待设置'}}</p>
                        </div>
                      </div>
                    </div>-->
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-12">
            <div class="panel panel-default panel-csc">
              <div class="panel-heading">
                <div class="panel-title">代理商信息</div>
              </div>
              <div class="panel-body">
                <div class="form form-horizontal">
                  <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司名称:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.name}}</p>
                    </div>
                  </div>
                  <div class="form-group form-select-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司地址:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.area && profitview.getCityString(info.area) || '未填写'}}</p>
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                      <p class="form-control-static">{{info.address || '未填写'}}</p>
                    </div>
                  </div>

                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>法定代表:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.legal || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>手机号:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.cellphone || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label control-label-double"><span class="span-danger">*</span>法人代表<span class="visible-sm-inline"> <br/></span>身份证照片:</label>
                        <div class="col-sm-8">
                          <div class="image-group">
                            <div class="input-image input-image-add" ng-repeat="item in info.pcfile" ng-class="{true: 'has-caption'}[!!item.caption]">
                              <div class="image-wrapper">
                                <div class="image-thumbnail" ng-hide="!item.file">
                                  <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.pcfile', item.file)">
                                </div>
                              </div>
                              <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="col-sm-6" ng-if="!info.is_same">
                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>实际控制人:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.real_name || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>手机号:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.real_cellphone || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label control-label-double"><span class="span-danger">*</span>实际控制人<span class="visible-sm-inline"> <br/></span>身份证照片:</label>
                        <div class="col-sm-8">
                          <div class="image-group">
                            <div class="input-image input-image-add" ng-repeat="item in info.rpcfile" ng-class="{true: 'has-caption'}[!!item.caption]">
                              <div class="image-wrapper">
                                <div class="image-thumbnail" ng-hide="!item.file">
                                  <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.rpcfile', item.file)">
                                </div>
                              </div>
                              <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
<!--
                  <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>业务区域:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.business_area && profitview.getCityString(info.business_area) || '未填写'}}</p>
                    </div>
                  </div>-->

                  <div class="form-group">
                    <label class="col-sm-2 control-label control-label-double"><span class="span-danger">*</span>营业执照正本<span class="visible-sm-inline"> <br/></span>照片/扫描件:</label>
                    <div class="col-sm-10">
                      <div class="image-group">
                        <div class="image-group">
                          <div class="input-image" ng-repeat="item in info.blfile" ng-class="{true: 'input-image-add'}[!item.file]">
                            <div class="image-wrapper">
                              <div class="image-thumbnail" ng-hide="!item.file">
                                <img class="viewer-image" ng-src="{{item.file.serverData.url  || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.blfile', item.file)">
                              </div>
                            </div>
                            <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label control-label-double"><span class="span-danger">*</span>网吧钉钉代理<span class="visible-sm-inline"> <br/></span>协议照片/扫描件:</label>
                    <div class="col-sm-10">
                      <div class="image-group">
                        <div class="input-image input-image-add" ng-repeat="item in info.affile" ng-class="{true: 'has-caption'}[!!item.caption]">
                          <div class="image-wrapper">
                            <div class="image-thumbnail" ng-hide="!item.file">
                              <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.affile', item.file)">
                            </div>
                          </div>
                          <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div ng-if="type === 'edit' && !loading">
        <div class="tools">
          <div class="btn-group" role="group" aria-label="">
            <a href="{{redirect_url}}" class="btn btn-default btn-info" uib-tooltip="返回" tooltip-append-to-body="true" tooltip-placement="top" ><i class="fa fa-fw fa-chevron-left"></i><span class="hidden-xs"> 返回</span></a>
          </div>
        </div>

        <div class="row mt-10">
          <div class="col-md-12">
            <div class="panel panel-default panel-csc">
              <div class="panel-heading">
                <div class="panel-title">代理商分润信息</div>
              </div>
              <div class="panel-body">
                <form name="form" class="form form-horizontal" ng-submit="editSubmit(id, form.$valid)" novalidate>
                  <div class="row">
                    <div class="col-sm-12">
                      <div class="form-group">
                        <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司名称:</label>
                        <div class="col-sm-10">
                          <p class="form-control-static">{{info.name}}</p>
                        </div>
                      </div>
                    </div>
                  </div>

                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>渠道码:</label>
                        <div class="col-sm-6">
                          <input type="text" ng-model="mform.code" class="form-control" placeholder="渠道码" required>
                          <div class="error-messages" ng-messages="form.code.$error">
                            <small class="error" ng-message="required">渠道码（*必填）</small>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>快捷支付分润比:</label>
                        <div class="col-sm-6">
                          <div class="input-group input-group-info">
                            <input type="text" ng-model="mform.profits.pct_quick" name="pct_quick" class="form-control" placeholder="请输入分润比例" required ng-pattern="/^0(\.(([1-5]{1}\d?)|(0\d?)|(60?)))?$/">
                            <span class="input-group-addon">%</span>
                          </div>
                          <div class="error-messages" ng-messages="form.pct_quick.$error">
                            <small class="error" ng-message="required">快捷支付分润比（*必填）</small>
                            <small class="error" ng-message="pattern">分润比例在0.00%-0.60%之间</small>
                          </div>
                        </div>
                      </div>
                    </div>

                    <!--<div class="col-sm-4">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>会员充值分润比:</label>
                        <div class="col-sm-6">
                          <div class="input-group input-group-info">
                            <input type="text" ng-model="mform.profits.pct_charge" name="pct_charge" class="form-control" placeholder="比例" required ng-pattern="/^\d+\.*\d{0,2}$/">
                            <span class="input-group-addon">%</span>
                          </div>
                          <div class="error-messages" ng-messages="form.pct_charge.$error">
                            <small class="error" ng-message="required">会员充值分润比（*必填）</small>
                            <small class="error" ng-message="pattern">分润比必须为2位小数</small>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="col-sm-4">
                      <div class="form-group">
                        <label class="col-sm-6 control-label"><span class="span-danger">*</span>水吧零食分润比:</label>
                        <div class="col-sm-6">
                          <div class="input-group input-group-info">
                            <input type="text" ng-model="mform.profits.pct_consume" name="pct_consume" class="form-control" placeholder="比例" required ng-pattern="/^\d+\.*\d{0,2}$/">
                            <span class="input-group-addon">%</span>
                          </div>
                          <div class="error-messages" ng-messages="form.pct_consume.$error">
                            <small class="error" ng-message="required">水吧零食分润比（*必填）</small>
                            <small class="error" ng-message="pattern">分润比必须为2位小数</small>
                          </div>
                        </div>
                      </div>
                    </div>-->
                  </div>

                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                      <div class="btn-group" role="group" aria-label="">
                        <button class="btn btn-default btn-success" ng-disabled="form.$invalid"><i class="fa fa-fw fa-save"></i> 保存修改</button>
                      </div>
                      <div class="btn-group" role="group" aria-label="">
                        <a href="{{redirect_url}}" class="btn btn-default btn-danger"><i class="fa fa-fw fa-mail-forward"></i> 放弃修改</a>
                      </div>
                    </div>
                  </div>
                </form>
              </div>
            </div>
          </div>
          <div class="col-md-12">
            <div class="panel panel-default panel-csc">
              <div class="panel-heading">
                <div class="panel-title">代理商信息</div>
              </div>
              <div class="panel-body">
                <div class="form form-horizontal">
                  <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司名称:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.name}}</p>
                    </div>
                  </div>
                  <div class="form-group form-select-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>公司地址:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.area && profitview.getCityString(info.area) || '未填写'}}</p>
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                      <p class="form-control-static">{{info.address || '未填写'}}</p>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-sm-6">
                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>法定代表:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.legal || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>手机号:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.cellphone || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label control-label-double"><span class="span-danger">*</span>法人代表<span class="visible-sm-inline"> <br/></span>身份证照片:</label>
                        <div class="col-sm-8">
                          <div class="image-group">
                            <div class="input-image input-image-add" ng-repeat="item in info.pcfile" ng-class="{true: 'has-caption'}[!!item.caption]">
                              <div class="image-wrapper">
                                <div class="image-thumbnail" ng-hide="!item.file">
                                  <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.pcfile', item.file)">
                                </div>
                              </div>
                              <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="col-sm-6" ng-if="!info.is_same">
                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>实际控制人:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.real_name || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label"><span class="span-danger">*</span>手机号:</label>
                        <div class="col-sm-8">
                          <p class="form-control-static">{{info.real_cellphone || '未填写'}}</p>
                        </div>
                      </div>

                      <div class="form-group">
                        <label class="col-sm-4 control-label control-label-double"><span class="span-danger">*</span>实际控制人<span class="visible-sm-inline"> <br/></span>身份证照片:</label>
                        <div class="col-sm-8">
                          <div class="image-group">
                            <div class="input-image input-image-add" ng-repeat="item in info.rpcfile" ng-class="{true: 'has-caption'}[!!item.caption]">
                              <div class="image-wrapper">
                                <div class="image-thumbnail" ng-hide="!item.file">
                                  <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.rpcfile', item.file)">
                                </div>
                              </div>
                              <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>

<!--                  <div class="form-group">
                    <label class="col-sm-2 control-label"><span class="span-danger">*</span>业务区域:</label>
                    <div class="col-sm-10">
                      <p class="form-control-static">{{info.business_area && profitview.getCityString(info.business_area) || '未填写'}}</p>
                    </div>
                  </div>-->

                  <div class="form-group">
                    <label class="col-sm-2 control-label control-label-double"><span class="span-danger">*</span>营业执照正本<span class="visible-sm-inline"> <br/></span>照片/扫描件:</label>
                    <div class="col-sm-10">
                      <div class="image-group">
                        <div class="image-group">
                          <div class="input-image" ng-repeat="item in info.blfile" ng-class="{true: 'input-image-add'}[!item.file]">
                            <div class="image-wrapper">
                              <div class="image-thumbnail" ng-hide="!item.file">
                                <img class="viewer-image" ng-src="{{item.file.serverData.url  || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.blfile', item.file)">
                              </div>
                            </div>
                            <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label control-label-double"><span class="span-danger">*</span>网吧钉钉代理<span class="visible-sm-inline"> <br/></span>协议照片/扫描件:</label>
                    <div class="col-sm-10">
                      <div class="image-group">
                        <div class="input-image input-image-add" ng-repeat="item in info.affile" ng-class="{true: 'has-caption'}[!!item.caption]">
                          <div class="image-wrapper">
                            <div class="image-thumbnail" ng-hide="!item.file">
                              <img class="viewer-image" ng-src="{{item.file.serverData.url || 'assets/images/loading.gif'}}" ng-click="viewFile($event, 'info.affile', item.file)">
                            </div>
                          </div>
                          <div class="caption" ng-if="!!item.caption">{{item.caption}}</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

    </div>
  </div>

</div>
